<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>XXX安装 - 参数设置</title>

    <!-- Bootstrap core CSS -->
    <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="style/common.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>

<div class="container">
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="page-header">
                <h1>XXX 安装</h1>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-2 col-sm-3">
            <nav>
                <ul class="nav nav-pills nav-stacked">
                    <li role="presentation"><a href="index.html"> 1) &nbsp; 安装说明 </a></li>
                    <li role="presentation"><a href="nodes.html"> 2) &nbsp; 节点列表 </a></li>
                    <li role="presentation"><a href="roles.html"> 3) &nbsp; 角色配置 </a></li>
                    <li role="presentation" class="active"><a href="javascript: void(0);"> 4) &nbsp; 参数设置 </a></li>
                    <li role="presentation"><a href="install-start.html"> 5) &nbsp; 开始安装 </a></li>
                </ul>
            </nav>
        </div>
        <div class="col-md-10 col-sm-9">

            <div id="rolesPanel" class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="panel-title">参数设置</h2>
                </div>
                <div class="panel-body">

                    <form id="settingsForm">
                        <h4>基本设置&nbsp;
                            <small>(必选)</small>
                        </h4>
                        <hr>
                        <div class="form-group">
                            <label>Database</label>
                            <input type="url" class="form-control" name="dbUrl"
                                   placeholder="URL，例如：jdbc:mysql://192.168.1.1:3306/test"/><br/>
                            <input type="text" class="form-control" name="dbUser"
                                   placeholder="用户名"/><br/>
                            <input type="password" class="form-control" name="dbPassword"
                                   placeholder="用户密码"/>
                        </div>
                        <div class="form-group">
                            <label>Redis</label>
                            <input type="text" class="form-control" name="redisHost"
                                   placeholder="主机名或ip"/><br/>
                            <input type="text" class="form-control" name="redisPort"
                                   placeholder="端口号"/><br/>
                            <input type="number" class="form-control" name="redisDB"
                                   placeholder="库号，默认为0"/>
                        </div>
                        <br>
                        <h4>高级设置&nbsp;
                            <small>(可选，不填则使用默认设置)</small>
                            <i type="button" data-toggle="collapse" data-target="#advanced"
                                    class="glyphicon glyphicon-triangle-bottom"></i>
                        </h4>
                        <hr>
                        <div class="collapse" id="advanced">
                            <div class="form-group">
                                <label>Kafka</label>
                                <input type="number" class="form-control" name="kafkaDataExpiryDate"
                                       placeholder="数据有效期(单位：天)"/><br/>
                                <input type="number" class="form-control" name="kafkaReplicas"
                                       placeholder="复本数"/><br/>
                                <input type="number" class="form-control" name="kafkaPartitions"
                                       placeholder="分区数"/>
                            </div>
                            <div class="form-group">
                                <label>Hadoop</label>
                                <input type="number" class="form-control" name="hadoopReplicas"
                                       placeholder="复本数"/><br/>
                                <input type="number" class="form-control" name="hadoopBlockSize"
                                       placeholder="block大小(单位：MB)"/><br/>
                                <input type="number" class="form-control" name="hadoopMaxBadDisks"
                                       placeholder="最大磁盘损坏数"/><br/>
                                <input type="number" class="form-control" name="hadoop"
                                       placeholder="垃圾桶清理周期(单位：小时)"/>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <p>
                <a class="btn btn-default" href="roles.html">上一步</a>
                <a class="btn btn-primary" href="install-start.html">下一步</a>
            </p>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="copyright">Copyright © 2010 - 2016 TIZA. All Rights Reserved</div>
        </div>
    </div>
</div>


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="script/common.js"></script>
<script type="text/javascript">
    $(function() {
        $('#settingsForm i').on('click', function () {
            var $this = $(this);
            if($this.hasClass("glyphicon-triangle-bottom")) {
                $this.removeClass("glyphicon-triangle-bottom");
                $this.addClass("glyphicon-triangle-top");
            } else {
                $this.removeClass("glyphicon-triangle-top");
                $this.addClass("glyphicon-triangle-bottom");
            }
        });
    });
</script>
</body>
</html>
